﻿

namespace Cos.Module.Template.NHibernate.Test
{
    using Cos.Core.NHibernate;
    using Cos.Core.NHibernate.Tests;
    using NUnit.Framework;

    [TestFixture]
    public class OptionDataModelFixture : ModuleFixtureBase
    {
        [Test]
        public void CanMapOptionDataModel()
        {
            new PersistenceSpecification<OptionDataModel>(Session)
                .CheckProperty(x => x.OptionName, "Name")
                .CheckProperty(x => x.OptionOrder, 1)
                .CheckProperty(x => x.PartId, this.Part.Id)
                .VerifyTheMappings();
        }
    }
}
